#include <iostream>
#include <cmath>
using namespace std;
int main()
{
    int m,n;
    double x;
    while (cin>>n>>m){
        if (n==0&&m==0)
            return 0;

        x = ((double)n+sqrt((double)(n*n-4*m)))/2;
        if (x == int(x) )
            cout<<"Yes"<<endl;
        else
            cout<<"No"<<endl;
    }
    return 0;
}  